<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'establecimiento-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>
	
	<div class="col-md-8">
	
	<div class="panel panel-primary">
			<div class="panel-heading">
				 <h3 class="panel-title"><span class=""></span>&nbsp;&nbsp;</h3>
			</div>
	
	

    <div class="panel-body">
		<?php echo $form->labelEx($model,'ID_EMPRESA'); ?>
		<?php echo $form->dropDownList($model, 'ID_EMPRESA',CHtml::listData(EmpresaUsuario::model()->findAllByAttributes(array('ID_USUARIO'=>Yii::app()->user->id, 'ACTIVO'=>1)),'ID_EMPRESA','ID_EMPRESA'), array('class'=>'form-control')); ?>
		<?php echo $form->error($model,'ID_EMPRESA',array('class'=>'text-danger')); ?>
	</div>
	
	
	<div class="panel-body">
		<?php echo $form->labelEx($model,'NOMBRE'); ?>
        <?php echo $form->textField($model,'NOMBRE',array('class'=>'form-control', 'size'=>60,'maxlength'=>300, 'placeholder'=>' ')); ?>
		<?php echo $form->error($model,'NOMBRE'); ?>
	</div>
	

	<div class="panel-body">
		<?php echo $form->labelEx($model,'DOMICILIO'); ?>
        <?php echo $form->textField($model,'DOMICILIO',array('class'=>'form-control', 'size'=>60,'maxlength'=>300, 'placeholder'=>' ')); ?>
		<?php echo $form->error($model,'DOMICILIO'); ?>
	</div>

    <div class="panel-body">
		<?php echo $form->labelEx($model,'RFC'); ?>
        <?php echo $form->textField($model,'RFC',array('class'=>'form-control', 'size'=>60,'maxlength'=>300, 'placeholder'=>' ')); ?>
		<?php echo $form->error($model,'RFC'); ?>
	</div>
	

	<div class="panel-body">
		<?php echo $form->labelEx($model,'IMSS'); ?>
        <?php echo $form->textField($model,'IMSS',array('class'=>'form-control', 'size'=>60,'maxlength'=>300, 'placeholder'=>' ')); ?>
		<?php echo $form->error($model,'IMSS'); ?>
	</div>
	
	<div class="panel-body">
		<?php echo $form->labelEx($model,'ACTIVO'); ?>
	    <?php echo $form->dropDownList($model, 'ACTIVO',array('1'=>'Disponible', '0'=>'No disponible'), array('class'=>'form-control')); ?>
		<?php echo $form->error($model,'ACTIVO'); ?>
	
	<br>
		
	
     	<?php echo CHtml::submitButton(UserModule::t("Aceptar"), array('class'=>"btn btn-primary ")); ?>
   
      	</div>  
      	</div>
    
      </div>
	
<?php $this->endWidget(); ?>

</div><!-- form -->